﻿using Niunan.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Niunan.VideoSys.Web.Controllers
{
    public class TestController : Controller
    {
        // GET: Test
        public ActionResult Index()
        {
            DAL.AdminDAL admindal = new DAL.AdminDAL();
            string username = "admin2";
            string password = "admin";
            admindal.Add(new Model.Admin()
            {
                username = username,
                password = Tool.MD5(username + password + "niunan"),
                createtime = DateTime.Now
            });
            return Content(DateTime.Now.ToString());
        }
    }
}